package com.qyhl.module_practice.substreet.detail;


import com.qyhl.webtv.commonlib.entity.civilized.PracticeListBean;

public class StreetDetailPresenter implements StreetDetailContract.StreetDetailPresenter {
    private StreetDetailActivity mView;
    private StreetDetailModel mModel;

    StreetDetailPresenter(StreetDetailActivity mView) {
        this.mView = mView;
        this.mModel = new StreetDetailModel(this);
    }

    @Override
    public void getDetail(String streetId) {
        mModel.getDetail(streetId);
    }

    @Override
    public void setDetail(PracticeListBean bean) {
       mView.setDetail(bean);
    }

    @Override
    public void setError(String msg) {
        mView.setError(msg);
    }
}
